package com.bw.hongye.other.service.impl;

import com.aliyun.common.utils.PageUtils;
import com.aliyun.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.hongye.other.dao.AuthenticationDao;
import com.bw.hongye.other.entity.AuthenticationEntity;
import com.bw.hongye.other.service.AuthenticationService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("authenticationService")
public class AuthenticationServiceImpl extends ServiceImpl<AuthenticationDao, AuthenticationEntity> implements AuthenticationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AuthenticationEntity> page = this.page(
                new Query<AuthenticationEntity>().getPage(params),
                new QueryWrapper<AuthenticationEntity>()
        );

        return new PageUtils(page);
    }

}